import {MovieModel} from "../../../models/movie";
const movies=new MovieModel();
import {list} from "../../../utils/util";
// const app=getApp();
Page({

  data: {

  },
  onConfirm(e){
    // console.log(e)
    wx.showLoading({
      title:'加载中',
    })
    var key=e.detail.value;
    // console.log(key)
    movies.getSearch(key,res=>{
      var movies=list(res.subjects)
      this.setData({
        movies
      })
    })
    wx.hideLoading()
  },
})